package com.cb.eureka.ribbon.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cb.eureka.ribbon.service.HelloService;
import com.cb.eureka.ribbon.service.ProcessService;

@RestController
public class HelloControler {
	private Logger log = LoggerFactory.getLogger(HelloControler.class);
	@Autowired
    HelloService helloService;
	@Autowired
	ProcessService processService;
	
	@RequestMapping(value = "/hi")
    public String hi(){
		log.info("===call trace1===");
        return helloService.hiService("caib");
    }
	
	@RequestMapping(value = "/service-ribbon")
	public String processConsumer(){
		return processService.hello();
	}
}
